
#include <iostream>
#include "CStateON.h"
#include "CStateOFF.h"

using namespace std;


CStateON::CStateON()
{

}


CStateON::~CStateON()
{

}


void CStateON::off(CMachine *itsMachine)
{
    cout << "\tState transition ON -> OFF" << endl;

    itsMachine->setActualState(new CStateOFF());
    delete this;
}

